package cz.proks.easyhelpdesk.gwt.ui.widget;

import com.google.gwt.dom.client.HeadingElement;
import com.google.gwt.user.client.DOM;

public class H1Widget extends AHeading {        
   
    public H1Widget() {                
        setElement(HeadingElement.as(DOM.createElement("h1")));
        setStyleName(getResources().style().h1Element());
    }
    
    public H1Widget withNoTopMargin() {
        removeStyleName(getResources().style().h1Element());
        setStyleName(getResources().style().h1ElementWithNoTopMargin());
        return this;
    }
        
}
